use "nego_s3a.dta"

gen hinc=inc/hnum
replace age = age+17
alpha esses_1 - esses_4, gen(zero)
alpha gse_4 gse_5 gse_6 gse_7 gse_8 gse_9 gse_10 gse_11, gen(gse)
alpha affect_2 affect_3 affect_5 affect_7 affect_10, gen(na)
alpha affect_4 affect_6 affect_8 affect_9 affect_11, gen(pa)
gen navon=navon1+navon2+navon3+navon4
alpha power_1 power_2 power_3 power_4, gen(power)



label variable zero "Zero-sum Construal"
label variable hinc "Household Income"
label variable gse "General Self-Efficacy"
label variable na "Negative Affect"
label variable pa "Positive Affect"
label variable navon "Construal Level"
label variable power "Sense of Power"


tab gender, m
sum age

reg zero hinc gse power na pa navon gender age
estat esize
reg zero inc gse power na pa navon

pwcorr zero hinc gse power na pa navon gender age if e(sample)==1, sig
*export result: mkcorr zero hinc gse power na pa navon gender age if e(sample)==1,log(table3) replace means lab cdec(2) mdec(2)

